<?php
if (!defined("__WD__")) exit("Wrong Connect");

if ( !function_exists("url_relativeRoot") ) {
	function url_relativeRoot() {
	
		throw new Exception("url_relativeRoot() function doesn't service..");
		$exp = explode("index.php/", $_SERVER['PHP_SELF']);
		$n = count(explode("/", array_pop($exp)));
		$arr = array();
		for ($i = 0; $i < $n-1; $i++) {
			array_push($arr, "..");
		}
		$url = implode("/", $arr);
		if ($url == "") return ".";
		else return $url;
		// wandu 에서 호출할때는 ./wandu return.. 추가해야함.
	}
}